#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"

//This will test totaling up the score for the player

void testscoreFor(){

	struct gameState* gs;

	gs=newGame();

	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy};

	initializeGame(2, k, 1, gs);

	int player=1;

	gs->handCount[player]=5;
	gs->discardCount[player]=5;
	gs->deckCount[player]=5;

	gs->hand[player][0] = curse;
	gs->hand[player][1] = estate;
	gs->hand[player][2] = duchy;
	gs->hand[player][3] = province;
	gs->hand[player][4] = great_hall; //total 10

	gs->discard[player][0] = curse;
	gs->discard[player][1] = estate;
	gs->discard[player][2] = duchy;
	gs->discard[player][3] = province;
	gs->discard[player][4] = great_hall; //total 10

	gs->deck[player][0] = curse;
	gs->deck[player][1] = estate;
	gs->deck[player][2] = duchy;
	gs->deck[player][3] = province;
	gs->deck[player][4] = great_hall; //total 10



	/**************************** TEST 1  ********************************/

	if(scoreFor(player, gs)==30){
			printf("scoreFor(): PASS when one of all cards but gardens are on hand discard and deck.\n");
	}
	else{
			printf("scoreFor(): FAIL when one of all cards but gardens are on hand discard and deck.\n");
	}


}


int main(int argc, char *argv[])
{

	testscoreFor();
    return 0;
}



